#include "redheadduck.h"

RedheadDuck::RedheadDuck(Quackable *quack)
    : m_quack(quack)
{
}

void RedheadDuck::quack()
{
    if (m_quack)
    {
        m_quack->quack();
    }
}

void RedheadDuck::setQuack(Quackable *quack)
{
    m_quack = quack;
}
